﻿using System.Runtime.Serialization;

namespace MyFloridaHouse.libSTO
{
	/// <summary>
	/// Distict Plan STO (server transfer object)
	/// </summary>
    [DataContract]
    public class DistictPlanSTO
    {
        byte[] _districtPlan;
        string _errorMessage;
        bool _isCurrent;
        string _districtPlanFileName;

		/// <summary>
		/// Initializes a new instance of the <see cref="DistictPlanSTO"/> class.
		/// </summary>
        public DistictPlanSTO()
        {
            _districtPlan = new byte[0];
            _errorMessage = "";
            _isCurrent = false;
            _districtPlanFileName = "";
        }

		/// <summary>
		/// Gets or sets the district plan.
		/// </summary>
		/// <value>The district plan.</value>
        [DataMember]
        public byte[] districtPlan
        {
            get { return _districtPlan; }
            set { _districtPlan = value; }
        }

		/// <summary>
		/// Gets or sets the error message.
		/// </summary>
		/// <value>The error message.</value>
        [DataMember]
        public string errorMessage
        {
            get { return _errorMessage; }
            set { _errorMessage = value; }
        }

		/// <summary>
		/// Gets or sets a value indicating whether this instance is current.
		/// </summary>
		/// <value>
		/// 	<c>true</c> if this instance is current; otherwise, <c>false</c>.
		/// </value>
        [DataMember]
        public bool isCurrent
        {
            get { return _isCurrent; }
            set { _isCurrent = value; }
        }

		/// <summary>
		/// Gets or sets the name of the district plan file.
		/// </summary>
		/// <value>The name of the district plan file.</value>
        [DataMember]
        public string districtPlanFileName
        {
            get { return _districtPlanFileName; }
            set { _districtPlanFileName = value; }
        }
    }
}
